home *** CD-ROM | disk | FTP | other *** search
/ Danny Amor's Online Library / Danny Amor's Online Library - Volume 1.iso / html / faqs / faq / pex-faq < prev    next >
Text File  |  1995-07-25  |  37KB  |  898 lines

  1. Subject: (28mar94) Welcome to comp.windows.x.pex! (FAQ)
  2. Newsgroups: comp.windows.x.pex,comp.answers,news.answers
  3. From: thomson@lal.cs.utah.edu (Richard Thomson)
  4. Date: 15 Nov 1994 11:20:02 GMT
  5.  
  6. Archive-name: pex-faq
  7. Last-Modified: 28 March 1994
  8.  
  9. This article discusses frequently asked questions (FAQs) about PEX,
  10. the PHIGS Extensions to the X Window System.  Each question is grouped
  11. as an article in a digest.  Some news readers (i.e rn) have commands
  12. for skipping to the next article in a digest.  In rn, ^G (control-G)
  13. skips to the next article in a digest.  The information in this
  14. article is culled from several sources: the FAQ in comp.windows.x,
  15. and articles in the newsgroups comp.windows.x and comp.graphics.
  16. Where possible, the author, date and article id of the original
  17. newsgroup article is included.  When I have edited/modified the
  18. original article, I have enclosed my modifications in square brackets
  19. [] with my initials (RT) at the end.
  20.  
  21. Contents:
  22.   1)  What's new?
  23.   2)  What is PEX?
  24.   3)  How can I tell if my X server supports PEX?
  25.   4)  Why don't the R5 PEX demos work on my mono screen?
  26.   5)  Where can I get an X-based PEX package?
  27.   6)  What about immediate mode for PEX?
  28.   7)  Why don't the R5 PEX contributed demos compile?
  29.   8)  Why doesn't double-buffering work via phigs_ws_type_create?
  30.   9)  What does "Kernel not configured with shared-memory IPC" mean?
  31.  10)  Obtaining Graphics Standards (GKS, PHIGS, etc.)
  32.  11)  PHIGS/PEX Books
  33.  12)  Articles on PEX
  34.  13)  PEX Application Programmer Interfaces (APIs)
  35.  14)  PHIGS Toolkit -- a portable toolkit for PHIGS programmers
  36.  15)  Why doesn't HLHSR mode (Z buffering) work with the PEX-SI?
  37.  
  38. Acronyms:
  39.  
  40. ANSI        American National Standards Institute
  41. API        Application Programmer Interface
  42. CGM        Computer Graphics Metafile
  43. GKS        Graphics Kernel System
  44. HLHSR        Hidden line and hidden surface removal
  45. ISO        International Organization for Standardization
  46. PEX        PHIGS/PHIGS-PLUS Extensions to X
  47. PHIGS        Progammer's Hierarchical Interactive Graphics System
  48. PHIGS-PLUS    PHIGS Plus Lumiere Und Surfaces
  49. R5        X Window System, Version 11 Release 5
  50. SI        Sample Implementation
  51.  
  52. ------
  53. Subject:  1)  What's new?
  54. From: Rich Thomson <thomson@jensen.cs.utah.edu>
  55. Date: Mon Mar 28 14:14:49 MST 1994
  56.  
  57. Modifications since the 13 September 1993 version:
  58. o   Added section on HLHSR with the PEX-SI
  59.  
  60. Modifications since the 3 March 1993 version:
  61. o   Revamped section on PHIGS books
  62.  
  63. Added since the 7 December version:
  64. o   Clarification that although PEX stands for "PHIGS Extensions to
  65.     X", this acronym's expansion has only historical significance in light
  66.     of PEX 6.0
  67. o   Changing of API section to have updated information on PEXtk and PEXlib
  68. o   Changing of book section to have information on O'Reilly
  69.     PHIGS/PEXlib books
  70. o   Added new section on the PHIGS Toolkit from the UK
  71. o   This section describing changes from the last version
  72.  
  73. ------
  74. Subject:  2)  What is PEX?
  75. From: hersh@expo.lcs.mit.edu (Jay Hersh)
  76. Date: Mon Dec  7 14:10:47 MST 1992
  77. Message-Id: <9201201706.AA13024@xenon.lcs.mit.edu>
  78.  
  79. [PEX originally stood for PHIGS Extensions to X.  However, this name
  80. is nothing more than history at this point, since the next version of
  81. the PEX protocol, version 6.0, is not really designed specifically for
  82. PHIGS at all.  Rather, it is designed to support 3D application
  83. programs in general. --RT]  It is a an Extension to the Core X
  84. Protocol to provide 3D graphics support within the X Windows
  85. environment.  Included in the X11R5 distribution is code for the
  86. Sample Implementation of the extensions to the X Windows server which
  87. implements the functionality defined by the PEX Protocol Extensions.
  88.  
  89. In order to access the PEX funtional extensions to the X Server
  90. one must use an application that generates PEX Protocol.  The
  91. application can either generate the Protocol bytestream itself, or
  92. use something called an Application Protocol Interface or API for
  93. short.  One such API which is provided with the X11R5 distribution
  94. is the PHIGS 3D graphics standard.  This is a port of the PHIGS C
  95. language binding onto an internal layer which generates the PEX
  96. Protocol allowing this particular PHIGS implementation to work
  97. within the X windows environment.
  98.  
  99. Other alternate APIs are available via anonymous ftp from
  100. export.lcs.mit.edu.
  101.  
  102. Patches for a variety of problems in R5 are now available via
  103. anonymous ftp on export.lcs.mit.edu, and the xstuff mail archive
  104. server on expo.lcs.mit.edu.
  105.  
  106. Fixes are available via anonymous ftp to export.lcs.mit.edu
  107. (18.24.0.12), in the directory /pub/R5/fixes/.  The files for the new
  108. fixes are "fix-18", "fix-19", and "PEXlib.tar.Z".  PEXlib.tar.Z is
  109. part of fix #19.  Instructions for applying the fixes are included in
  110. the files.  Fixes usually propagate to other distribution sites as
  111. well, so it may pay to check at a nearer site first.
  112.  
  113. - Jay Hersh
  114.   MIT X Consortium
  115.  
  116. ------
  117. Subject:  3)  How can I tell if my X server supports PEX?
  118. From: hersh@expo.lcs.mit.edu (Jay Hersh)
  119. Date: Mon, 20 Jan 92 12:06:01 -0500
  120. Message-Id: <9201201706.AA13024@xenon.lcs.mit.edu>
  121.  
  122. The xdpyinfo command displays all the extensions supported by a server.
  123. If one of the extensions listed is X3D-PEX then your server supports PEX.
  124.  
  125. - Jay Hersh
  126.   MIT X Consortium
  127.  
  128. ------
  129. Subject:  4)  Why don't the R5 PEX demos work on my mono screen?
  130. From: xug@mta.com (X User's Group)
  131. Date: Sun, 15 Dec 91 20:51:04 GMT
  132. Message-Id: <1991Dec15.205122.5581@mta.com>
  133. Newsgroups: comp.windows.x
  134.  
  135. The R5 sample server implementation only works on color screens, sorry.
  136.  
  137. ------
  138. Subject:  5)  Where can I get an X-based PEX package?
  139. From: xug@mta.com (X User's Group)
  140. Date: Sun, 15 Dec 91 20:53:23 GMT
  141. Message-Id: <1991Dec15.205323.5657@mta.com>
  142. Newsgroups: comp.windows.x
  143.  
  144.     The official release of PEX is with X11R5.
  145.  
  146.     There is now available from the University of Illinois an 
  147. implementation of the PEX 4.0 specification called UIPEX. It contains a "near-
  148. complete" implementation of PHIGS and PHIGS PLUS. The file 
  149. pub/uipex/uipex.tar.Z is on a.cs.uiuc.edu (128.174.252.1); the porting platform
  150. was an RT running 4.3.  Questions and comments can to go uipex@cs.uiuc.edu. 
  151.  
  152.     In addition, the PEXt toolkit by Rich Thomson
  153. (thomson@jensen.cs.utah.edu) is available on export as PEXt.tar.Z; it
  154. includes a PEX widget making it easier to include PEX in Xt-based programs.
  155.  
  156.  
  157. ------
  158. Subject:  6) What about immediate mode for PEX?
  159. From: jch@Stardent.COM (Jan "Yon" Hardenbergh)
  160. Date: 7 May 91 15:39:02 GMT
  161. Message-Id: <1991May7.153902.6083@Stardent.COM>
  162. References: <JIM.91May6113744@baroque.Stanford.EDU>
  163. Newsgroups: comp.graphics
  164.  
  165. PEX has immediate mode intrinsically.  No need to add it.  What is
  166. needed is the API.  There are currently three proposed interfaces to PEX
  167. Immediate mode: PEXIM, PEXlib and PEXtk.  PEXIM is actually a PHIGS
  168. subset with immediate mode extensions.  PEXlib is to the PEX protocol
  169. what Xlib it to the X protocol.  PEXtk is trying to capture the best of
  170. the proprietary graphics interfaces.
  171.  
  172. Of course, PEXIM has the advantage that graphics hackers familiar with
  173. PHIGS can pick it right up, or that can read one of the (great :-) PHIGS
  174. books coming out.
  175.  
  176. The ANSI PHIGS committee started to add immediate mode to PHIGS.  So,
  177. eventually, the API for PEX immediate mode will probably fall back to
  178. PHIGS, but that is just opinion.
  179.  
  180. From: jim@baroque.Stanford.EDU (James Helman)
  181. > But does this actually address the problem?  The main reason that
  182. > PHIGS is well-suited for networked graphics is that once your large
  183. > mass of geometry is downloaded, you can rapidly change attributes and
  184. > transformations without blasting the whole object down the slow wire.
  185. > But in immediate mode, one typically sends everything down the wire
  186. > each draw cycle.  With graphics speeds hitting 1 million polys per
  187. > second, you certainly can't blast enough data down an ethernet to feed
  188. > the graphics hardware.
  189.  
  190. You have to look at what is happening to the majority of the data.  If
  191. the geometry is stable but the attribute change, then you can store the
  192. geometry in the server and use immediate mode to send the attributes.
  193. This is referred to as "mixed mode" or mixing stored structures with
  194. immediate mode.  This is a very powerful model of graphics.
  195.  
  196. > Hence unless network bandwidth outpaces graphics performance, an
  197. > immediate mode PEX API won't be particularly useful over a network.
  198. > One could replace the PEX layer with local graphics access to get
  199. > performance, thus making the immediate mode PEX API a standard for
  200. > non-PEX graphics, but this is a rather convoluted path to such an end.
  201.  
  202. It's never safe to assume that the relative speeds of components of the
  203. system will stay the same.  You are comparing the high end of rendering
  204. with the low end of networking.  Compare the current high end of
  205. networking, like FDDI at 12 MBytes per second and it works out just
  206. fine.  1 M polygons/sec takes 12 MB / second.  Of course both of those
  207. numbers are PEAK numbers.  When you start to look at what applications
  208. really do, the peak numbers become irrelevant.
  209.  
  210. > Maybe GL and XGL's days aren't so numbered.  Or am I missing
  211. > something?  Perhaps, local shared memory PEX request queues?  The
  212. > article didn't even mention bandwidth as a concern.
  213.  
  214. Yes, of course good implementations of PEX will have shared memory.
  215.  
  216. But let's talk about the bread and butter cases.  The majority of the
  217. market has not hit the 30 K triangles per second mark.  Ethernet can
  218. keep up with that quite easily, and shared memory does more than keep
  219. up.
  220.  
  221. But, there is overhead in a network transparent protocol.  To get rid of
  222. it would require the application to write thier data directly into the
  223. shared memory, then there are no copies, still something to work for.
  224. People used to say X would never work due to the overhead, or for that
  225. matter that fancy UI's do not work due to the overhead.  Depends on what
  226. you want and where your priorities are.
  227.  
  228. My guess is that the combination of compute servers and PEX terminals
  229. and workstations will help PEX become the graphics of choice.  If you
  230. are not recomputing your 1 million triangles they can be in the display
  231. list.  If you are recomputing them, how long does that take? on what
  232. machine?
  233.  
  234. Disclaimer: I've had something to do with PEX and PEXIM and I always
  235. speak on my own behalf, unless specifically stated otherwise.
  236.  
  237. -Jan "YON" Hardenbergh       jch@stardent.com         (508)-371-9810x261
  238. Stardent Computer, 6 N.E. Tech Center, 521 Virginia Rd,Concord, MA 01742
  239.  
  240. ------
  241. Subject:  7)  Why don't the R5 PEX contributed demos compile?
  242. From: hersh@expo.lcs.mit.edu
  243. Date: Thu, 30 Apr 92 15:39:27 -0400
  244. Message-Id: <9204301939.AA06066@exhume.lcs.mit.edu>
  245.  
  246. >   [Initially at the time of R5's release...] it was a bit of
  247. >   work to upgrade PEX to the new ISO IS PHIGS C Binding.  The examples
  248. >   had been put into contrib a while back and there was no time nor
  249. >   manpower to worry about updating those when other things had to be
  250. >   fixed and upgraded (like the man pages).
  251.  
  252. The demos have been upgraded.  The new versions for the ISO PHIGS C
  253. binding are available from export.lcs.mit.edu  in the file
  254. PEX.examples.tar.Z in the directory contrib/R5fixes.
  255.  
  256. - Jay Hersh
  257.  
  258. -----
  259. Subject:  8)  Why doesn't double-buffering work via phigs_ws_type_create?
  260. From: thomson@jensen.cs.utah.edu (Rich Thomson)
  261. Date: Sat, 23 Nov 91 20:38:52 GMT
  262. Message-ID: <1991Nov23.203852.3673@dsd.es.com>
  263. References: <1991Nov22.220338.3560@shell.shell.com>
  264. Newsgroups: comp.graphics,comp.windows.x
  265.  
  266. In article <1991Nov22.220338.3560@shell.shell.com>
  267.     senften@taurus (Scott D. Senften) writes:
  268. >
  269. >I need your help...I just got X11R5 up and running on my Sparc and I'm wanting
  270. >to do some PHIGS+ work.  I've got a rough prototype up and running but I can't
  271. >seem to get the double buffering working.  I tried:
  272. >
  273. > wks = phigs_ws_type_create(phigs_ws_type_x_tool,
  274. >                            PHIGS_X_BUF_MODE, PHIGS_BUF_DOUBLE,
  275. >                            0);
  276. >
  277. >but that alone doesn't seem to do it.  Am I missing something?
  278.  
  279. What you're missing is that the PEX-SI provides no support for double
  280. buffering.
  281.  
  282. A serious hole in the PEX-SI is its non-support for double buffering.
  283. Even worse, the PEX-SI api assumes that the client desires an
  284. XClearArea on the window before each frame is drawn.  What really
  285. should have been done was to provide an end-of-render procedure hook,
  286. with the default hook installed to do a clear area.
  287.  
  288. Individual vendors (because of market pressure) have provided their
  289. own solutions to the double buffering problem (we do double buffering
  290. an all PHIGS workstations; if you do immediate-mode you get single
  291. buffering along with the PEX-SI's XClearArea call).
  292.  
  293. I believe the PEX interoperability group is currently working on a vendor
  294. neutral solution that we can all agree on.
  295.  
  296.                         -- Rich
  297.  
  298. -----
  299. Subject:  9)  What does "Kernel not configured with shared-memory IPC" mean?
  300. From: michaelh@homebrew.WV.TEK.COM (Mike Herbert)
  301. Date: 25 Nov 91 18:54:35 GMT
  302. Message-ID: <12065@orca.wv.tek.com>
  303. Newsgroups: comp.windows.x
  304.  
  305. Francis J. Hitchens writes:
  306. > I have just built X11R5 on my VAXstatsion 3100, under ULTRIX 4.1, and
  307. > tried to run the PEX
  308. > tests.
  309. >
  310. > They all failed...
  311. >
  312. > PHIGS error -57 in OPEN PHIGS: Kernel not configured with shared-memory IPC
  313. > facility needed for PEX SI communication
  314.  
  315. I ran into this problem last week.  Here's what I've determined so far.
  316.  
  317. Your PEX library has been built so that it is trying to use the shared-memory
  318. IPC facility to communicate with the phigsmon program.  If your client
  319. does not need phigsmon, then turn it off:
  320.  
  321. setenv PEX_SI_API_NO_PM 1
  322.  
  323. (Typically you should only need phigsmon for doing PHIGS input or client-
  324. side structure storage.)
  325.  
  326. Another alternative is to rebuild the PEX library so that it uses sockets
  327. to communicate with phigsmon.  You can do this by defining 
  328. "PEX_API_SOCKET_IPC".  (I haven't tried this, but the code indicates
  329. that it should work.) 
  330.  
  331. The other alternative, of course, it to configure your kernel to use IPC.
  332. (I'm a novice as far as Ultrix is concerned, so I really don't understand
  333. what's involved in doing that.)
  334.  
  335. Mike Herbert
  336. Tektronix, Inc.
  337. Network Displays Division
  338. P.O. Box 1000, M/S 60-850
  339. Wilsonville, OR 97070
  340. (503) 685-2145
  341.  
  342. michaelh@orca.WV.TEK.COM
  343.  
  344. -----
  345. Subject:  10)  Obtaining Graphics Standards (GKS, PHIGS, etc.)
  346. From: jch@Stardent.COM (Jan "Yon" Hardenbergh)
  347. Date: 12 Feb 91 19:27:53 GMT
  348. Message-ID: <1991Feb12.192753.3647@Stardent.COM>
  349. Newsgroups: comp.graphics
  350.  
  351. GKS - Graphical Kernal System - geometric graphics system
  352. CGM - Computer Graphics Metafile - archive of graphics commands - very
  353.       useful for plotting.
  354. PHIGS - the best graphics standard!  3D geometric graphics with lighting
  355.       and shading and neat primitives to draw fancy pictures.
  356. If you are looking for a broad overview of graphics standards you might
  357. try this:
  358.  
  359. >   Guidelines for determining when to use GKS and when to use PHIGS
  360. >   Bettels, J.; Bono, P.R.; McGinnis, E.; Rix, J.
  361. >   Author Affil:  Digital Equipment Corp., Geneva, Switzerland
  362. >   Source: Comput. Graph. Forum (Netherlands)  vol.7, no.4,    pp.: 347-54
  363. >   Publication Year: Dec. 1988
  364. >   (29 Refs)
  365. >   Abstract:  GKS,  GKS-3D, and PHIGS are all approved ISO standards for the
  366. > application  programmer  interface.  How  do system analysts or programmers
  367. > decide which standard to use for their application? The authors discuss the
  368. > range  of  application  requirements  likely to be encountered, explore the
  369. > suitability  of  GKS and PHIGS for satisfying these requirements, and offer
  370. > guidelines to aid in the decision process. 
  371.  
  372. I know I've seen other overviews of graphics standards. Just none recently.
  373.  
  374. There are a couple of books on CGM and GKS, but I do not have the
  375. references written down.
  376.  
  377. As, for PHIGS, you can get the standard itself from ANSI in New York.
  378. 212-642-4900, 11 West 42nd Street, NY, NY 10036.  [The following table
  379. gives the ANSI standard numbers corresponding to the PHIGS standards:
  380.  
  381.     ANSI X3.144-1988    ISO 9592 parts 1, 2 and 3 for PHIGS
  382.     ANSI X3.144.1        ISO 9593-1 for PHIGS FORTAN binding
  383.     ANSI X3.144.3        ISO 9593-3 for PHIGS Ada binding
  384.     ANSI X3.144.4        ISO 9593-4 for PHIGS C binding
  385.  
  386. --RT]  They will also have the GKS and CGM specs.
  387.  
  388. -Jan "YON" Hardenbergh       jch@stardent.com         (508)-371-9810x261
  389. Stardent Computer, 6 N.E. Tech Center, 521 Virginia Rd,Concord, MA 01742
  390.  
  391. -----
  392. Subject: 11) PHIGS/PEX books
  393. From: jch@adbeta9.prime.com (Jan Hardenbergh )
  394. Date: Fri, 3 Sep 1993 00:31:21 GMT
  395. Summary:  lots of PHIGS and PEX books out there.
  396. Id:  <CCr5G9.28q@cvbnet.CV.COM>
  397.  
  398. I'm perhaps not the best judge, since I have them all (or will soon) and
  399. have a trial membership to the authors club, where we all chum around
  400. together :-)
  401.  
  402. But if your job is actually to work with either PHIGS or PEX, SPEND the
  403. $200+ or so to get many of the books here. It's a tiny investment in
  404. your career, especially if you get reimbursed! If you are the type that
  405. only wants one book on a subject, go to a bookstore and look carefully
  406. at which one you want, after all, you can't judge a book by its email.
  407.  
  408. The books I'd buy again appear in order of appearance.
  409.  
  410. PHIGS Books
  411. ===========
  412.  
  413. Toby Howard et al. "A Practical Introduction to PHIGS and PHIGS PLUS"
  414. Addison-Wesley 1991, ISBN 0-201-41641-7
  415.   A "great" small book on PHIGS.  Covers almost everything, but briefly.
  416.   Not good to program from, but if your question is what is PHIGS, this
  417.   will be the best place to start for most people.
  418.  
  419. Tom Gaskins. "PHIGS Programming Manual", O'Reilly 1992, 
  420.     ISBN 0-937175-92-7 (casebound)  ISBN 0-937175-85-4 (soft)
  421.   This is the most comprehensive and the best to program from for Sun
  422.   and any PEX-SI based PHIGS product. Tom knows this stuff inside and out.
  423.  
  424. Joseph E Kasper and David Arns."Graphics Programming with PHIGS and PHIGS-PLUS"
  425. HP Press/Addison Wesley, ISBN 0-201-56343-6
  426.   A book more oriented to the standard than Gaskins' book, It has
  427.   both FORTRAN and "C" and uses new binding. Especially good for HP.
  428.  
  429. John W. Blake. "PHIGS + PHIGS+, An Introduction to 3D Computer Graphics"
  430. Acedemic Press/Harcourt Brace Jovanovich Ltd. ISBN 0.12.103515.8
  431. (only from 24-28 Oval Road, London, NWI 7DX, UK //  Lbs 29.95 ??)
  432.   I'm buying it, sight unseen...
  433.  
  434. "PHIGS Reference Manual", O'Reilly 1992, Edited by Rich Ellis & ...
  435.  ISBN 0-937175-91-9
  436.   Man Pages (improved version of the PEX-SI man pages)
  437.  
  438. Hopgood & Duce, "A Primer for PHIGS" John Wiley & Sons Ltd,
  439. ISBN: 471 93042 3 (no PHIGS-PLUS)
  440.   Some useful notions on structure editing.
  441.  
  442. W.A. Gaman, W.A. Giovinazzo, "PHIGS by Example", Springer-Verlag,
  443. ISBN 0-387-97555-1
  444.  
  445. PEX Books
  446. =========
  447.  
  448. Tom Gaskins' "PEXlib Programming Manual", O'Reilly 1992, ISBN 0-56592-028-7
  449.   This is a great book.
  450.  
  451. Paula Womack, PEXlib: A Tutorial, Prentice Hall 1993 (printing, due October)
  452. ISBN 013-015843-7.
  453.   Sight unseen. Paula was document editor for PEX 5.1, I'd bet it's great.
  454.  
  455. Mark Graff, PEXlib: A Reference Manual, Prentice Hall, ISBN 013-176066-1, 
  456.   Sight unseen.
  457.  
  458. "PEXlib Reference Manual", O'Reilly 1992,  ISBN 1-56592-029-5
  459.   Man pages for PEXlib SI,  with intro by Tom Gaskins.
  460.  
  461. ...and one more...
  462. Jan Hardenbergh, Building Applications with PEXlib, Prentice Hall, (December)
  463. ISBN 013-012535-0.
  464.   I've seen too much of this to be impartial! I like it. 
  465.  
  466. My conscience is clean (still) about using the internet for commercial gain.
  467. I've been sending out these lists of PHIGS books since before I had even
  468. thought of writing one. But at this point I'll stop because I think it is
  469. a gray area. I hope someone else will take it up. Joe?
  470.  
  471. Opinions expressed are my own, my employer uses HOOPS!
  472. Jan "YON" Hardenbergh     - jch@cvbnet.cv.com -      617-275-1800x3275
  473. Computervision Corp.        MS 5-2, 14 Crosby Drive, Bedford, MA 01730
  474. "Imagination is more important than knowledge" A. Einstein - Thank God!
  475. -----
  476.  
  477. Subject: 12) Articles on PEX
  478. From: klee@wsl.dec.com (Ken Lee)
  479. Date: 12 Aug 91 17:06:05 GMT
  480. References: <1991Aug12.100605@wsl.dec.com>
  481.  
  482. Clifford, William, John McConnell, and Jeffrey Friedberg, "The Development
  483.      of PEX, A Three-dimensional Graphics Extension to X11," in Proceedings
  484.      of Eurographics'88, September, 1988.  An overview PEX, an extension to
  485.      the X protocol to support PHIGS+.
  486.  
  487. Rost, Randi, Jeffrey Friedberg, and Peter Nishimoto, "PEX:  A Network-
  488.      Transparent 3D Graphics System," IEEE Computer Graphics & Applica-
  489.      tions, pp. 14-26, July, 1989.  A good overview of PEX, the
  490.      PHIGS/PHIGS+ 3D extension to X. A complete PEX is currently being
  491.      developed by Sun under contract to the MIT X Consortium and is
  492.      scheduled to be publicly available in 1991.
  493.  
  494. Stroyan, Michael, "Three-Dimensional Graphics Using the X Window System,"
  495.      Dr. Dobb's Journal, vol. 15, no. 2, pp. 28-36, February, 1990.  A high
  496.      level description of various approaches to developing 3D graphics
  497.      tools for X, including those of the PHIGS Extension to X (PEX) and
  498.      HP's Starbase-on-X11 (sox11).
  499.  
  500. Sung, Hsien Ching Kelvin, Greg Rogers, and William Kubitz, "A Critical
  501.      Evaluation of PEX," IEEE Computer Graphics & Applications, vol. 10,
  502.      no. 6, pp. 65-75, November, 1990.  An evaluation of PEX, the X exten-
  503.      sion to support PHIGS, from the point of view of a PHIGS implementor.
  504.  
  505. Thomas, Spencer W. and Martin Friedmann, "PEX - A 3-D Extension to X Win-
  506.      dows," in Proceedings of the Winter, 1989 USENIX Conference, pp. 139-
  507.      149.  Describes a demonstration implementation of PEX, the
  508.      PHIGS/PHIGS+ 3D extension to X. A complete PEX is currently being
  509.      developed by Sun under contract to the MIT X Consortium and is
  510.      scheduled to be publically available in 1991.
  511.  
  512. -----
  513. Subject: 13)  PEX Application Programmer Interfaces (APIs)
  514. From: thomson@jensen.cs.utah.edu (Rich Thomson)
  515. Date: Tue Mar  2 22:27:37 MST 1993
  516.  
  517. When discussing PEX, it is important not to confuse the protocol with
  518. the API, or application programmer interface.  The API is the
  519. conceptual model of 3D graphics that the application developer sees.
  520. The protocol is generated by the API and is interpreted by the server
  521. to perform graphics requests on behalf of the client program.
  522.  
  523. One API provided with the R5 PEX-SI is a PHIGS/PHIGS-PLUS API.  The
  524. PHIGS/PHIGS-PLUS standards are specified in two parts.  First, a
  525. functional description describes each operation conceptually, in a
  526. language-independent manner.  Second, language bindings are used to
  527. bind the particular PHIGS functions to the semantics of the language.
  528. The PEX-SI comes with an application programmer interface that
  529. conforms with the latest revision of the PHIGS/PHIGS-PLUS C language
  530. binding.
  531.  
  532. Bob Schulte of SHOGraphics had this to say about their GL-like API
  533. called PEXtk:
  534.  
  535.     Newsgroups: comp.windows.x.pex
  536.     From: rws@shograf.com (Bob Schulte)
  537.     Subject: Re: difference between PEX and GL
  538.     Date: Fri, 5 Feb 1993 16:03:42 GMT
  539.  
  540.     PEXtk is complete and available now directly from export.mit.lcs.edu,
  541.     and is located in /contrib. The files are pextk.PS.tar.Z, pextk.README,
  542.     and pextk.tar.Z.  It is Free.
  543.  
  544.     Depending on how you write a GL program and what features you use
  545.     it may or may not be difficult to port to PEXtk. It would certainly
  546.     be easier than porting to PHIGS.
  547.  
  548.     For example PEXtk uses X as its windowing system, so the UI is X
  549.     based. We have not attempted to duplicate any GL windowing functions.
  550.  
  551.     Bob
  552.     --
  553.     Bob Schulte,        E-Mail: rws@shograf.com    Voice: (408) 524-4015
  554.     SHOgraphics.        Performance Through PEX
  555.  
  556.  
  557. If your version of R5 is patched through patch #22, you have a second
  558. MIT supplied API called "PEXlib".  PEXlib is to the PEX protocol what
  559. Xlib is to the core X protocol.  PEXlib provides an interface that is
  560. as close as possible to a one-to-one correspondence between functions
  561. and protocol requests.  It is intended to be a systems programming
  562. interface (i.e. people developing graphics toolkits and graphics
  563. systems will implement their system on top of PEXlib).  It is proposed
  564. that the PHIGS API be ported to PEXlib once PEXlib is finalized.  This
  565. change would not affect programs written to the existing PHIGS API.
  566. However, since PEXlib is intimately tied to the protocol, it is
  567. expected that there will be changes between the current PEXlib (which
  568. supports version 5.0 and 5.1 of the PEX protocol) and the PEXlib that
  569. supports the next major version of the PEX protocol, version 6.0.
  570. Naturally, every attempt will be made to make the changes to the API
  571. minimal.  The nature of the changes from 5.1 to 6.0 are not such that
  572. every primitive will be affected; rather the changes deal with the
  573. sticky problems of subsets, multi-buffering, and other issues of
  574. global rendering semantics.
  575.  
  576. The future may contain other popular graphics APIs (SGI's GL, HP's
  577. Starbase, Stardent's Dore') that also generate the PEX protocol.
  578.  
  579.                         -- Rich
  580. -----
  581. Subject: 14)  PHIGS Toolkit -- a portable toolkit for PHIGS programmers
  582. From: Gareth Williams <williamj@computer-science.manchester.ac.uk>
  583. Date: Mon, 8 Feb 93 08:56:20 GMT
  584. Message-Id: <9302080856.AA04031@r3i.cs.man.ac.uk>
  585.  
  586.                      THE PHIGS TOOLKIT
  587.  
  588.      A PORTABLE TOOLKIT FOR PHIGS APPLICATION PROGRAMMERS
  589.  
  590.             *************************************
  591.             **** NEW RELEASE VERSION 3.2 FOR ****
  592.             ****       SunPHIGS 2.0          ****
  593.             ****       HP PHIGS 2.2          ****
  594.             **** ##    IBM graPHIGS 1.02  ## ****
  595.             ****         PEX-SI              ****
  596.             *************************************
  597.  
  598. We are pleased to announce the availability of version 3.2 of the PHIGS
  599. Toolkit, a portable toolkit for PHIGS application Programmers. The PHIGS
  600. Toolkit has been developed at the University of Manchester, UK, and is
  601. funded by the Science and Engineering Research Council (SERC) and the
  602. Advisory Group on Computer Graphics (AGOCG). The Toolkit is based on the
  603. experience of the developers who have been active PHIGS programmers for
  604. several years and were also involved in the ISO technical review of PHIGS
  605. and PHIGS PLUS.
  606.  
  607. Following the release in September this year of version 3.1 of the PHIGS
  608. Toolkit, version 3.2 is now available which supports SunPHIGS 2.0,
  609. HP PHIGS 2.2, IBM graPHIGS 1.02 and MIT's PEX-SI.
  610.  
  611. MAIN FEATURES OF THE TOOLKIT
  612. ----------------------------
  613.  
  614.  o comprehensive transformations library
  615.  o automatic drawing of structure network hierarchy diagrams
  616.  o automatic drawing of structure content diagrams
  617.  o interactive CSS debugger
  618.  o interactive view editor
  619.  o window system implemented using PHIGS structures
  620.  o interactive PHIGS Interpreter
  621.  o comprehensive colour model support library
  622.  o menu system to extend PHIGS input
  623.  
  624.  o Runs with C and FORTRAN for SunPHIGS on SunOS
  625.  o Runs with C for HP PHIGS on HP-UX
  626.  o Runs with C for graPHIGS on AIX
  627.  o Runs with C for PEX-SI on SunOS
  628.  o Runs with C and FORTRAN for DEC PHIGS on VAX/VMS (PTK 2.0 only)
  629.  
  630.  o full source code provided
  631.  o demonstration programs provided
  632.  o comprehensive documentation
  633.  
  634. WHAT IS THE PHIGS TOOLKIT?
  635. --------------------------
  636.  
  637. The purpose of the PHIGS Toolkit is to help application programmers to
  638. program more effectively and securely using PHIGS. The functionality
  639. provided by PHIGS is low-level, and the PHIGS Toolkit provides a number of
  640. tools of various levels of complexity in order to make programming with
  641. PHIGS quicker, and less painful.  To the programmer, it is as if the
  642. functions provided by PHIGS have been supplemented with a set of additional
  643. functions, and a typical application will use both `raw' PHIGS functions as
  644. well as PHIGS Toolkit functions.  A convenient way to view the Toolkit is
  645. as a layer of software which sits `on top of' PHIGS.
  646.  
  647. Tools in the PHIGS Toolkit are divided into two categories: PROGRAMMING
  648. TOOLS, and HIGH-LEVEL TOOLS.  Programming tools are generally quite simple
  649. single-purpose procedures, and are designed to help applications
  650. programmers to construct PHIGS programs more quickly and reliably. The
  651. high-level tools are more powerful, and provide programmers with means for
  652. visualising and debugging structure networks.
  653.  
  654. PROGRAMMING TOOLS
  655. -----------------
  656.  
  657.  o the Transformations Library -- functions for
  658.    constructing and manipulating coordinate transformations.
  659.  
  660.  o the HashStrings Library -- functions which enable text
  661.    strings to be used in situations where integers would normally
  662.    be required.
  663.  
  664.  o the PHIGS Utilities Library -- utility functions,
  665.    providing operations (such as `copy element') which are not directly
  666.    provided by PHIGS, as well as common sequences of PHIGS function calls
  667.    `bundled up' into single functions.
  668.  
  669.  o the PHIGS Traversal State List Library -- functions for
  670.    controlling and inquiring a simulated structure network traversal.
  671.  
  672.  o the Colour Library -- functions for defining colour
  673.    values using English words and phrases, and for interchangeably
  674.    manipulating colours using various colour models.
  675.  
  676.  o the PHIGS Textual Interpreter (Phinter) -- a tool for reading textual
  677.    PHIGS scripts. Phinter may be used interactively with a PHIGS string device
  678.    or standard input.
  679.  
  680. HIGH-LEVEL TOOLS
  681. ----------------
  682.  
  683.  o the PHIGS Structure Content Drawer -- a tool to generate diagrams
  684.    showing which elements structures contain.  The diagrams are themselves
  685.    PHIGS structures, with a documented format.
  686.  
  687.  o the PHIGS Topology Library -- functions for
  688.    automatically generating diagrams representing the topology of PHIGS
  689.    structure networks. The diagrams are themselves PHIGS structures, with a
  690.    documented format.
  691.  
  692.  o the PHIGS Menus Library -- functions for constructing
  693.    and manipulating menus built using PHIGS structures.
  694.  
  695.  o the PHIGS Windows Library -- functions for displaying
  696.    and viewing PHIGS structure networks in windows.
  697.  
  698.  o the PHIGS Debugger -- a tool (modelled after conventional
  699.    programming language debuggers) for simulating the traversal of structure
  700.    networks. The traversal may be stepped through incrementally and the state
  701.    of the traversal inquired at any stage.
  702.  
  703.  o the PHIGS View Editor -- a utility for interactively editing and
  704.    experimenting with viewing parameters for a scene.
  705.  
  706. PHIGS TOOLKIT INFORMATION   ** REGISTER NOW **
  707. ----------------------------------------------
  708.  
  709. We would like to encourage all people interested in the PHIGS Toolkit to
  710. register as PHIGS Toolkit users. This will ensure that all PHIGS Toolkit
  711. users will receive notice of new versions, course dates, bug reports and
  712. any other useful information.  Please send the following information to
  713. phigstoolkit@cs.man.ac.uk.
  714.  
  715.    Name:
  716.    Organisation:
  717.    email:
  718.    Telephone/FAX:
  719.    PHIGS implementations used:
  720.  
  721. Even if the PHIGS Toolkit is not currently available for your particular
  722. PHIGS implementation, please register. We are currently working on ports to
  723. several other PHIGS implementations and it would be very useful to know
  724. what the demand is for different versions.
  725.  
  726. HOW TO OBTAIN THE PHIGS TOOLKIT
  727. -------------------------------
  728.  
  729. The PHIGS Toolkit is available from two sites in the UK:
  730.  
  731. PTK from Kent
  732. -------------
  733.  
  734. The PHIGS Toolkit is available from HENSA (Higher Education National 
  735. Software Archive) at the University of Kent.
  736.  
  737. The HENSA Service at the University of Kent can be accessed in a number 
  738. of ways:
  739.  
  740. Interactive
  741. -----------
  742.  
  743. There is a friendly interactive interface which has a useful find
  744. utility for locating software.  Connect to unix.hensa.ac.uk and log
  745. in as "archive" for an interactive interface to the HENSA archive.  
  746. Connections can be made using telnet (unix.hensa.ac.uk) and X.29 
  747. across JANET (uk.ac.hensa.unix, DTE 000049200900).
  748.  
  749. anonymous ftp
  750. -------------
  751.  
  752. Using DARPA FTP connect to the machine unix.hensa.ac.uk and
  753. login as "anonymous", giving your email address as the password.
  754.  
  755. guest NI-FTP]
  756. Using Blue Book NI-FTP with the following:
  757.  
  758. address: uk.ac.hensa.unix
  759. login: guest
  760. path: <ARCHIVE>/filename
  761.  
  762. eg.     % fcp -b "<ARCHIVE>/uunet/ls-lR.Z"@uk.ac.hensa.unix ls-lR.Z
  763. User name on uk.ac.hensa.unix? guest
  764. Password on uk.ac.hensa.unix? jn@ukc.ac.uk
  765.  
  766. email server
  767. ------------
  768.  
  769. Send a message to "archive@unix.hensa.ac.uk" containing the 
  770. string "help" for details on how to use it.
  771.  
  772. Any general queries regarding the HENSA service at The University of
  773. Kent should be directed to hensa@unix.hensa.ac.uk, queries specific to
  774. the Netlib service should be sent to netlib-admin@unix.hensa.ac.uk and
  775. stuff concerning the source archive to archive-admin@unix.hensa.ac.uk.
  776.  
  777. The relevant files for the PHIGS Toolkit on HENSA are:
  778.  
  779. PTK 3.2     /misc/unix/phigstk/PhigsToolkit3.2.tar.Z 
  780.                                       for SunPHIGS 2.0 on SunOS, 
  781.                                           HP PHIGS 2.2 on HP-UX,
  782.                                           graPHIGS 1.02 on AIX,
  783.                                           PEX-SI on SunOS.
  784.  
  785. PTK 2.0    /misc/unix/phigstk/PhigsToolkit.tar.Z 
  786.                                       for SunPHIGS 1.x on SunOS.
  787.            /misc/vms/phigstk/ptk.hex for DEC PHIGS 2.3A on VAX/VMS.
  788.  
  789. PTK from Manchester
  790. -------------------
  791.  
  792.   By anonymous ftp from uk.ac.mcc.hpb. (130.88.200.7) 
  793.   Username "anonymous", and your network address as password.
  794.   The files are:
  795.  
  796. PTK 3.2     pub/cgu/ptk/ptk3.2.tar.Z for SunPHIGS 2.0 on SunOS, 
  797.                                   HP PHIGS 2.2 on HP-UX,
  798.                                   graPHIGS 1.02 on AIX,
  799.                                   PEX-SI on SunOS.
  800.  
  801. PTK 2.0     pub/cgu/ptk/ptk.tar.Z for SunPHIGS 1.x on SunOS.
  802.  
  803.             pub/cgu/ptk/ptk.shar* for DEC PHIGS 2.3A on VMS.
  804.  
  805. (
  806. For VMS the Toolkit is stored as a collection of SHAR files.
  807. There are 288 files in total, each 15K in size.
  808. They are called ptk.shar_X where X is 1 ... 288.
  809. To rebuild the Toolkit directory structure the
  810. files must be concatenated together and run as a command file.
  811.  
  812.    $ copy ptk.shar_%, ptk.shar_%%, ptk.shar_%%% ptk.shar
  813.    $ @ptk.shar
  814. )
  815.  
  816. PTK by Magnetic Tape
  817. --------------------
  818.  
  819. Send a 1/4 inch cartridge for SunOS, and a 1/2 inch open reel magnetic tape
  820. for VMS to:
  821.  
  822. Tim Hopkins
  823. Computing Laboratory
  824. University of Kent
  825. email: trh@uk.ac.ukc
  826.  
  827. or
  828.  
  829. Toby Howard
  830. Department of Computer Science
  831. University of Manchester
  832. Oxford Road
  833. Manchester M13 9PL
  834. United Kingom
  835. Tel: +44 61 275 6274
  836. Fax: +44 61 275 6236
  837. email: toby@uk.ac.man.cs
  838.  
  839. PHIGS TOOLKIT TRAINING COURSE
  840. -----------------------------
  841.  
  842. A training course for users of the PHIGS Toolkit was held at the
  843. University of Manchester on September 23rd 1992. Course materials
  844. including four programming exercises and three step-through
  845. tutorials are provided in this release of the Toolkit.
  846.  
  847. FUTURE WORK
  848. -----------
  849.  
  850. The first phase of the PHIGS Toolkit does not include support for PHIGS
  851. PLUS. Work is now underway to expand the Toolkit to include extensive
  852. support for PHIGS PLUS functions, and the expanded PHIGS Toolkit will be
  853. released in April 1993. 
  854.  
  855. A toolkit providing support for NURBS curves and surfaces has also
  856. been developed at Manchester, and is designed to be complementary to 
  857. the PHIGS Toolkit. It is available from the same sites as PTK.
  858.  
  859. BETA TEST
  860. ---------
  861.  
  862. We are currently looking for beta testers for the PHIGS PLUS extensions 
  863. and the test will start in the new year and finish at the end of February 
  864. 1993. A short report will be required from testers. Please get in touch 
  865. if you are interested in being a tester.
  866.  
  867. Toby Howard, Terry Hewitt, Gareth Williams, Steve Larkin, David Yip
  868. University of Manchester
  869. Oxford Road, Manchester, M13 9PL, United Kingdom
  870.  
  871.  
  872. -----
  873. Subject: 15)  Why doesn't HLHSR mode (Z buffering) work with the PEX-SI?
  874. From: Rich Thomson <thomson@jensen.cs.utah.edu>
  875. Date: Mon Mar 28 14:14:49 MST 1994
  876.  
  877. Sorry, the PEX-SI doesn't have any support for hidden line and hidden
  878. surface removal (HLHSR), commonly implemented through Z buffering.
  879. The PEX-SI team decided that since Z buffering is very device specific
  880. they would leave it up to each vendor to implement Z buffering support
  881. for the first release.
  882.  
  883. It is planned to provide software Z buffer HLHSR support in the
  884. PEX-SI, probably in the R6 release.
  885.  
  886. The PHIGS standard allows an implementation to provide only HLHSR mode
  887. NONE and still be a conformant implementation of the standard.  This
  888. is probably a leftover from the days of calligraphic and storage-scope
  889. type displays which don't have Z buffers or other HLHSR removal methods
  890. in hardware (except hardware-based sorting for hidden-line removal).
  891.  
  892.                         -- Rich
  893. -- 
  894. --
  895.     ``Read my MIPs -- no new VAXes!!''  --George Bush after sniffing freon
  896. Rich Thomson                    thomson@asylum.utah.edu
  897.  
  898.